﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;

public partial class _controls_header : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    { 
        MemberPageBase _page = new MemberPageBase();
        if (String.IsNullOrEmpty(_page.UserName))
            panelUser.InnerHtml = "您还未登录, 请您先 <a href=\"membership_login.aspx\">登录</a><br />或 <a href=\"membership_register.aspx\">注册</a>";
        else
            panelUser.InnerHtml = "欢迎您,  <a href=\"membership_index.aspx\">" + _page.UserName + "</a> | <a href=\"membership_logout.aspx\">退出</a>"; 
    }
}
